package com.atguigu04.override.exer2;

/**
 * ClassName: CylinderTest
 * Package: com.atguigu04.override.exer2
 * Description:
 *
 * @Author 姜
 * @Create 2023/11/21 17:39
 * @Version 1.0
 */
public class CylinderTest {
    public static void main(String[] args) {
        Cylinder cylinder = new Cylinder();

        cylinder.setRadius(2.3);
        cylinder.setLength(1.4);
        System.out.println("圆柱的体积为：" + cylinder.findVolume());
        System.out.println("圆柱的底面积为：" + cylinder.findArea());
    }
}
